package com.thoughtworks.shoutbox.client.services;

import java.util.ArrayList;
import java.util.Map;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.thoughtworks.shoutbox.client.dto.ShoutDTO;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface ShoutingServiceAsync {
	void createRoom(String roomName, AsyncCallback<Void> serviceCallback);

	void getAllRooms(AsyncCallback<Map<String, String>> callback);

	void shout(String message, String roomId, AsyncCallback<Void> callback);

	void getAllShouts(String roomId, AsyncCallback<ArrayList<ShoutDTO>> callback);

}
